<template>
  <div>
    <NuxtLayout name="pinia-demo-layout">
      <template #header>
        <NuxtLink to="/swiperjs-demo/01" class="px-4"> 默认 </NuxtLink>
      </template>
      <template #default>
        <!-- 子页面的出口 -->
        <NuxtPage :page-key="(route) => route.fullPath" />
      </template>
    </NuxtLayout>
  </div>
</template>

<script setup lang="ts">
const $router = useRouter();

onMounted(() => {
  $router.push({ path: "/swiperjs-demo/01" });
});
</script>

<style scoped></style>
